Week 4 Homework Assignment Program #4 For this homework assignment you will: Write a program that accepts as input a string variable called...
Week 4 Homework Assignment
Program #4
For this homework assignment you will:
Write a program that accepts as input a string variable called strFirstName, then another string variable called strLastName, and an integer variable called intAge.
If the age entered is below 30, it should say "You are still young".
If the age entered is below 40, it should say "You are almost hitting middle-age".
If the age entered is below 60, it should say "Welcome to middle-age!"
If the age entered is above 60 and below 80, it should say "Enjoying retirement?"
If the age entered is over 80, it should say "Golden years".
Write out to each file the following:
Full Name: David Wiesner
Age: 35
Comment: You are almost hitting middle-age.
Make sure you include at least 3 comments
The variables are named correctly
Program functions as expected
You used at least one if-else statement
You used a way to concatenate the firstname and lastname together to display the full name in the output.
F
11 years ago
5
Answer(0)
Bids(0)
other Questions(10)
- online HW: chimestry / 1 section in two accounts
- I need a 3 page non-research paper for Criminal Justice Ethics class. The topic is What is personal Integrity?Give Examples. Does it matter in todays world?Do you have it?
- 1 Accounting Question - Need in 1 Hour
- Need help with week 4 assignments Nancy Carol
- Compare 2 fortune 500 companies energy resources
- 1. Develop hypotheses predicting the efficiency of solar energy from direct sunlight against the 4 variables tested?
- write differences and similarities
- for professor Geek
- After Susan Wong graduated from State University with a degree in Operations Research
- MKT 421 FINAL EXAM NEW